// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///Users/sizhijiang/Desktop/project/tooler/vue-app-fast/node_modules/vite/dist/node/index.js";
import vue from "file:///Users/sizhijiang/Desktop/project/tooler/vue-app-fast/node_modules/@vitejs/plugin-vue/dist/index.mjs";
var __vite_injected_original_import_meta_url = "file:///Users/sizhijiang/Desktop/project/tooler/vue-app-fast/vite.config.ts";
var vite_config_default = defineConfig({
  plugins: [
    vue()
  ],
  base: "./",
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  server: {
    proxy: {
      "/api": {
        target: "http://localhost:3000",
        // 目标服务器地址
        changeOrigin: true,
        // 是否改变请求源
        rewrite: (path) => path.replace(/^\/api/, "")
        // 重写路径
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvc2l6aGlqaWFuZy9EZXNrdG9wL3Byb2plY3QvdG9vbGVyL3Z1ZS1hcHAtZmFzdFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL3NpemhpamlhbmcvRGVza3RvcC9wcm9qZWN0L3Rvb2xlci92dWUtYXBwLWZhc3Qvdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL1VzZXJzL3NpemhpamlhbmcvRGVza3RvcC9wcm9qZWN0L3Rvb2xlci92dWUtYXBwLWZhc3Qvdml0ZS5jb25maWcudHNcIjtpbXBvcnQgeyBmaWxlVVJMVG9QYXRoLCBVUkwgfSBmcm9tICdub2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